//
//  TgCell.m
//  1.Tg
//
//  Created by mac on 16/5/30.
//  Copyright © 2016年 wxhl. All rights reserved.
//

#import "TgCell.h"
#import "TgModel.h"

@interface TgCell()


@end
@implementation TgCell


-(void)setTgModel:(TgModel *)tgModel
{
      _tgModel = tgModel;
      
      self.titleLable.text = tgModel.title;
      self.priceLable.text = tgModel.price;
      self.iconView.image = [UIImage imageNamed:tgModel.icon];
      self.buyCountLable.text = tgModel.buyCount;
      
      self.titleLable.backgroundColor = [UIColor clearColor];
      self.priceLable.backgroundColor = [UIColor clearColor];
      self.iconView.backgroundColor = [UIColor clearColor];
      self.buyCountLable.backgroundColor = [UIColor clearColor];
      
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
